//
//  UIImageView+ZUtilities.m
//  WeClubs
//
//  Created by Zed Link on 28/3/2017.
//  Copyright © 2017 Zed. All rights reserved.
//

#import "UIImageView+ZUtilities.h"

@implementation UIImageView (ZUtilities)

+ (instancetype)zImageViewWithImage:(NSString *)imageName
{
    UIImage *image = [UIImage imageNamed:imageName];
    NSString *desc = [NSString stringWithFormat:@"找不到与文件名\"%@\"所对应的图片", imageName];
    NSAssert(image != nil, desc);
    
    return [[UIImageView alloc] initWithImage:image];
}

@end
